<?php
require "gmail.class.php";
class GmailContact {
	var $username;
	var $password;
	
	public function __construct($username,$password){
		$this->username = $username;
		$this->password = $password;
	}
	
	public function getContactList(){
		$g   	 = new Gmail;
		$res 	 = $g->getContact($this->username,$this->password);
		$newlist = array();
		foreach($res as $r ){
			$newlist[] = $r['email'];
		}
		return $newlist;
	}
}
?>